package cn.cena.org.domian;

import cn.cena.basic.domain.BaseDomain;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data // 相当于getset和toString方法
public class Department extends BaseDomain{
    private String sn;
    private String name;
    private String dirPath;
    private Integer state;
    private Long manager_id;
    private Employee manager;
    private Long parent_id;
    private Department parent;

    private List<Department> children = new ArrayList<>();
}
